﻿namespace Rialternative.DescriptionProvider
{
    using System;

    /// <summary>
    /// Operation type to support for an entity type.
    /// </summary>
    [Flags]
    public enum EntityDomainOperations
    {
        /// <summary>
        /// No operation.
        /// </summary>
        None = 0,

        /// <summary>
        /// Query operation.
        /// </summary>
        Query = 1,

        /// <summary>
        /// Insert operation.
        /// </summary>
        Insert = 2,

        /// <summary>
        /// Update operation.
        /// </summary>
        Update = 4,

        /// <summary>
        /// Delete operation.
        /// </summary>
        Delete = 8,

        /// <summary>
        /// C.R.U.D operations.
        /// </summary>
        All = Query | Insert | Update | Delete
    }
}
